Skip to content

1.4.0#3

Open
Ronnie-Skylar wants to merge 10 commits intoGiamPy5:developfrom
Ronnie-Skylar:develop
Open

1.4.0#3
Ronnie-Skylar wants to merge 10 commits intoGiamPy5:developfrom
Ronnie-Skylar:develop

Conversation

@Ronnie-Skylar
Copy link

  • Added -
  • Functions for pushing and checking notification in .inc and .php.
  • Haul/SAMPSON dependency.
  • Changed -
  • Changed tfasamp.pwn -> tfasamp.inc. Because without changing the file format it would not #include <>
  • Removed raw return type and left only json return type.
  • Made the .php data return consistent.
  • HHTP response was handled with respect to an integer. Where as the data returned was always string. Changed it to incorporate that.

As most of the data retrieved is decoded with respect to json, as because it makes the whole process a lot more easier. Thus the "raw" return type has been removed. Instead "json" is compulsory.

Added 2 new switch cases for the command for $_GET which is checkNoti(fication) and pushNoti(fication)
There were parts where the variable was assigned simple values, but as the returned data is decoded in json, it has been changed to accommodate the value in json format.

Some array's identifier was not consistent, which is not anymore.

Added functions for pushNotification & checkNotification which pushes a notification in the client's device and the latter checks if the authorization was approved or denied.
Added further functionality to send notification to client's device and to check if it was approved or not.

HTTP response's data was handled on basis of an integer. Whereas what was returning was not integer at all. But json data. Thus it is now decoded and then values are assigned accordingly.

Added the JSON dependency to accommodate the JSON parse function.

Changed the format from .pwn -> .inc, as simply calling #include <tfasamp> wouldn't find the file.
@GiamPy5
Copy link
Owner

GiamPy5 commented Apr 16, 2019

Looks good. Just remove the link from the README.md and I'll merge it!

@Ronnie-Skylar
Copy link
Author

Ronnie-Skylar commented Apr 23, 2019

The function names have been changed. Prefix added properly. And are now consistent with the others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants